FHIR © HL7.org  |  Server Home  |  FHIR Server FHIR Server 3.4.11  |  FHIR Version n/a  User: [n/a]

Resource StructureMap/FHIR Server from package hl7.fhir.uv.xver#current (32 ms)

Package hl7.fhir.uv.xver
Type StructureMap
Id Id
FHIR Version R5
Source http://hl7.org/fhir/extensions/https://build.fhir.org/ig/HL7/fhir-cross-version/StructureMap-HumanName3to2.html
Url http://hl7.org/fhir/StructureMap/HumanName3to2
Version 0.1.0
Status active
Date 2024-02-22T03:16:50+00:00
Name HumanName3to2
Title HumanName Transforms: R3 to R2
Experimental False
Realm uv
Authority hl7
Description HumanNameTransformsR3toR2

Resources that use this resource

No resources found


Resources that this resource uses

No resources found



Narrative

Note: links and images are rebased to the (stated) source

/// url = 'http://hl7.org/fhir/StructureMap/HumanName3to2'
/// name = 'HumanName3to2'
/// title = 'HumanName Transforms: R3 to R2'
/// status = 'active'

uses "http://hl7.org/fhir/3.0/HumanName" alias HumanName as source
uses "http://hl7.org/fhir/1.0/HumanName" alias HumanNameR2 as target

imports "http://hl7.org/fhir/StructureMap/*3to2"

group HumanName(source src : HumanName, target tgt : HumanNameR2) <<type+>> {
  src.id -> tgt.id "HumanName-id";
  src.extension where url != 'http://hl7.org/fhir/StructureDefinition/HumanName-familyRepeat' -> tgt.extension "HumanName-extensions";
  src.use -> tgt.use "HumanName-use";
  src.text -> tgt.text "HumanName-text";
  src.family first -> tgt.family "HumanName-family";
  src.extension as ex where url = 'http://hl7.org/fhir/StructureDefinition/HumanName-familyRepeat' -> tgt.family as f then nameRepeat(ex, f) "HumanName-family-rpt-ex";
  src.given -> tgt.given "HumanName-given";
  src.prefix -> tgt.prefix "HumanName-prefix";
  src.suffix -> tgt.suffix "HumanName-suffix";
  src.period -> tgt.period "HumanName-period";
}

group nameRepeat(source src, target tgt) {
  src.value as v then string(v, tgt) "HumanName-family-rpt-2";
}


Source

{
  "resourceType" : "StructureMap",
  "id" : "HumanName3to2",
  "text" : {
    "status" : "generated",
    "div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\"><pre class=\"fml\">\r\n<span style=\"color: #cc00cc\">/// <b>url</b> = </span><span style=\"color: blue\">'http://hl7.org/fhir/StructureMap/HumanName3to2'</span>\r\n<span style=\"color: #cc00cc\">/// <b>name</b> = </span><span style=\"color: blue\">'HumanName3to2'</span>\r\n<span style=\"color: #cc00cc\">/// <b>title</b> = </span><span style=\"color: blue\">'HumanName Transforms: R3 to R2'</span>\r\n<span style=\"color: #cc00cc\">/// <b>status</b> = </span><span style=\"color: blue\">'active'</span>\r\n\r\n<b>uses</b><span style=\"color: navy\"> &quot;</span>http://hl7.org/fhir/3.0/HumanName<span style=\"color: navy\">&quot; </span><b>alias </b>HumanName <b>as </b><b>source</b>\r\n<b>uses</b><span style=\"color: navy\"> &quot;</span>http://hl7.org/fhir/1.0/HumanName<span style=\"color: navy\">&quot; </span><b>alias </b>HumanNameR2 <b>as </b><b>target</b>\r\n\r\n<b>imports</b><span style=\"color: navy\"> &quot;</span>http://hl7.org/fhir/StructureMap/*3to2<span style=\"color: navy\">&quot;\r\n</span>\r\n<b>group </b>HumanName<span style=\"color: navy\">(</span><b>source</b> <span style=\"color: maroon\">src</span><span style=\"color: navy\"> : </span>HumanName, <b>target</b> <span style=\"color: maroon\">tgt</span><span style=\"color: navy\"> : </span>HumanNameR2<span style=\"color: navy\">)</span><b> &lt;&lt;type+&gt;&gt;</b><span style=\"color: navy\"> {\r\n</span> src.id<span style=\"color: navy\"><b> -&gt; </b></span>tgt.id <i>&quot;HumanName-id&quot;</i><span style=\"color: navy\">;</span>\r\n src.extension<b> where </b>url != 'http://hl7.org/fhir/StructureDefinition/HumanName-familyRepeat'<span style=\"color: navy\"><b> -&gt; </b></span>tgt.extension <i>&quot;HumanName-extensions&quot;</i><span style=\"color: navy\">;</span>\r\n src.use<span style=\"color: navy\"><b> -&gt; </b></span>tgt.use <i>&quot;HumanName-use&quot;</i><span style=\"color: navy\">;</span>\r\n src.text<span style=\"color: navy\"><b> -&gt; </b></span>tgt.text <i>&quot;HumanName-text&quot;</i><span style=\"color: navy\">;</span>\r\n src.family first<span style=\"color: navy\"><b> -&gt; </b></span>tgt.family <i>&quot;HumanName-family&quot;</i><span style=\"color: navy\">;</span>\r\n src.extension<b> as </b><span style=\"color: maroon\">ex</span><b> where </b>url = 'http://hl7.org/fhir/StructureDefinition/HumanName-familyRepeat'<span style=\"color: navy\"><b> -&gt; </b></span>tgt.family<b> as </b><span style=\"color: maroon\">f</span><b> then </b>nameRepeat<span style=\"color: navy\">(</span><span style=\"color: maroon\">ex</span><span style=\"color: navy\">, </span><span style=\"color: maroon\">f</span><span style=\"color: navy\">)</span> <i>&quot;HumanName-family-rpt-ex&quot;</i><span style=\"color: navy\">;</span>\r\n src.given<span style=\"color: navy\"><b> -&gt; </b></span>tgt.given <i>&quot;HumanName-given&quot;</i><span style=\"color: navy\">;</span>\r\n src.prefix<span style=\"color: navy\"><b> -&gt; </b></span>tgt.prefix <i>&quot;HumanName-prefix&quot;</i><span style=\"color: navy\">;</span>\r\n src.suffix<span style=\"color: navy\"><b> -&gt; </b></span>tgt.suffix <i>&quot;HumanName-suffix&quot;</i><span style=\"color: navy\">;</span>\r\n src.period<span style=\"color: navy\"><b> -&gt; </b></span>tgt.period <i>&quot;HumanName-period&quot;</i><span style=\"color: navy\">;</span>\r\n<span style=\"color: navy\">}\r\n\r\n</span><b>group </b>nameRepeat<span style=\"color: navy\">(</span><b>source</b> <span style=\"color: maroon\">src</span>, <b>target</b> <span style=\"color: maroon\">tgt</span><span style=\"color: navy\">)</span><span style=\"color: navy\"> {\r\n</span> src.value<b> as </b><span style=\"color: maroon\">v</span><b> then </b>string<span style=\"color: navy\">(</span><span style=\"color: maroon\">v</span><span style=\"color: navy\">, </span><span style=\"color: maroon\">tgt</span><span style=\"color: navy\">)</span> <i>&quot;HumanName-family-rpt-2&quot;</i><span style=\"color: navy\">;</span>\r\n<span style=\"color: navy\">}\r\n\r\n</span></pre></div>"
  },
  "extension" : [
    {
      "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
      "valueCode" : "fhir"
    },
    {
      "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
      "valueInteger" : 1,
      "_valueInteger" : {
        "extension" : [
          {
            "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-conformance-derivedFrom",
            "valueCanonical" : "http://hl7.org/fhir/extensions/ImplementationGuide/hl7.fhir.uv.xver"
          }
        ]
      }
    },
    {
      "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
      "valueCode" : "draft",
      "_valueCode" : {
        "extension" : [
          {
            "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-conformance-derivedFrom",
            "valueCanonical" : "http://hl7.org/fhir/extensions/ImplementationGuide/hl7.fhir.uv.xver"
          }
        ]
      }
    }
  ],
  "url" : "http://hl7.org/fhir/StructureMap/HumanName3to2",
  "version" : "0.1.0",
  "name" : "HumanName3to2",
  "title" : "HumanName Transforms: R3 to R2",
  "status" : "active",
  "date" : "2024-02-22T03:16:50+00:00",
  "publisher" : "HL7 International / FHIR Infrastructure",
  "contact" : [
    {
      "telecom" : [
        {
          "system" : "url",
          "value" : "http://www.hl7.org/Special/committees/fiwg"
        }
      ]
    }
  ],
  "description" : "HumanNameTransformsR3toR2",
  "jurisdiction" : [
    {
      "coding" : [
        {
          "system" : "http://unstats.un.org/unsd/methods/m49/m49.htm",
          "code" : "001"
        }
      ]
    }
  ],
  "structure" : [
    {
      "url" : "http://hl7.org/fhir/3.0/HumanName",
      "mode" : "source",
      "alias" : "HumanName"
    },
    {
      "url" : "http://hl7.org/fhir/1.0/HumanName",
      "mode" : "target",
      "alias" : "HumanNameR2"
    }
  ],
  "import" : [
    "http://hl7.org/fhir/StructureMap/*3to2"
  ],
  "group" : [
    {
      "name" : "HumanName",
      "typeMode" : "type-and-types",
      "input" : [
        {
          "name" : "src",
          "type" : "HumanName",
          "mode" : "source"
        },
        {
          "name" : "tgt",
          "type" : "HumanNameR2",
          "mode" : "target"
        }
      ],
      "rule" : [
        {
          "name" : "HumanName-id",
          "source" : [
            {
              "context" : "src",
              "element" : "id",
              "variable" : "vvv"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "element" : "id",
              "variable" : "vvv",
              "transform" : "create"
            }
          ],
          "dependent" : [
            {
              "name" : "DefaultMappingGroupAnonymousAlias",
              "parameter" : [
                {
                  "valueId" : "vvv"
                },
                {
                  "valueId" : "vvv"
                }
              ]
            }
          ]
        },
        {
          "name" : "HumanName-extensions",
          "source" : [
            {
              "context" : "src",
              "element" : "extension",
              "variable" : "vvv",
              "condition" : "url != 'http://hl7.org/fhir/StructureDefinition/HumanName-familyRepeat'"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "element" : "extension",
              "variable" : "vvv",
              "transform" : "create"
            }
          ],
          "dependent" : [
            {
              "name" : "DefaultMappingGroupAnonymousAlias",
              "parameter" : [
                {
                  "valueId" : "vvv"
                },
                {
                  "valueId" : "vvv"
                }
              ]
            }
          ]
        },
        {
          "name" : "HumanName-use",
          "source" : [
            {
              "context" : "src",
              "element" : "use",
              "variable" : "vvv"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "element" : "use",
              "variable" : "vvv",
              "transform" : "create"
            }
          ],
          "dependent" : [
            {
              "name" : "DefaultMappingGroupAnonymousAlias",
              "parameter" : [
                {
                  "valueId" : "vvv"
                },
                {
                  "valueId" : "vvv"
                }
              ]
            }
          ]
        },
        {
          "name" : "HumanName-text",
          "source" : [
            {
              "context" : "src",
              "element" : "text",
              "variable" : "vvv"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "element" : "text",
              "variable" : "vvv",
              "transform" : "create"
            }
          ],
          "dependent" : [
            {
              "name" : "DefaultMappingGroupAnonymousAlias",
              "parameter" : [
                {
                  "valueId" : "vvv"
                },
                {
                  "valueId" : "vvv"
                }
              ]
            }
          ]
        },
        {
          "name" : "HumanName-family",
          "source" : [
            {
              "context" : "src",
              "element" : "family",
              "listMode" : "first",
              "variable" : "vvv"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "element" : "family",
              "variable" : "vvv",
              "transform" : "create"
            }
          ],
          "dependent" : [
            {
              "name" : "DefaultMappingGroupAnonymousAlias",
              "parameter" : [
                {
                  "valueId" : "vvv"
                },
                {
                  "valueId" : "vvv"
                }
              ]
            }
          ]
        },
        {
          "name" : "HumanName-family-rpt-ex",
          "source" : [
            {
              "context" : "src",
              "element" : "extension",
              "variable" : "ex",
              "condition" : "url = 'http://hl7.org/fhir/StructureDefinition/HumanName-familyRepeat'"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "element" : "family",
              "variable" : "f"
            }
          ],
          "dependent" : [
            {
              "name" : "nameRepeat",
              "parameter" : [
                {
                  "valueId" : "ex"
                },
                {
                  "valueId" : "f"
                }
              ]
            }
          ]
        },
        {
          "name" : "HumanName-given",
          "source" : [
            {
              "context" : "src",
              "element" : "given",
              "variable" : "vvv"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "element" : "given",
              "variable" : "vvv",
              "transform" : "create"
            }
          ],
          "dependent" : [
            {
              "name" : "DefaultMappingGroupAnonymousAlias",
              "parameter" : [
                {
                  "valueId" : "vvv"
                },
                {
                  "valueId" : "vvv"
                }
              ]
            }
          ]
        },
        {
          "name" : "HumanName-prefix",
          "source" : [
            {
              "context" : "src",
              "element" : "prefix",
              "variable" : "vvv"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "element" : "prefix",
              "variable" : "vvv",
              "transform" : "create"
            }
          ],
          "dependent" : [
            {
              "name" : "DefaultMappingGroupAnonymousAlias",
              "parameter" : [
                {
                  "valueId" : "vvv"
                },
                {
                  "valueId" : "vvv"
                }
              ]
            }
          ]
        },
        {
          "name" : "HumanName-suffix",
          "source" : [
            {
              "context" : "src",
              "element" : "suffix",
              "variable" : "vvv"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "element" : "suffix",
              "variable" : "vvv",
              "transform" : "create"
            }
          ],
          "dependent" : [
            {
              "name" : "DefaultMappingGroupAnonymousAlias",
              "parameter" : [
                {
                  "valueId" : "vvv"
                },
                {
                  "valueId" : "vvv"
                }
              ]
            }
          ]
        },
        {
          "name" : "HumanName-period",
          "source" : [
            {
              "context" : "src",
              "element" : "period",
              "variable" : "vvv"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "element" : "period",
              "variable" : "vvv",
              "transform" : "create"
            }
          ],
          "dependent" : [
            {
              "name" : "DefaultMappingGroupAnonymousAlias",
              "parameter" : [
                {
                  "valueId" : "vvv"
                },
                {
                  "valueId" : "vvv"
                }
              ]
            }
          ]
        }
      ]
    },
    {
      "name" : "nameRepeat",
      "input" : [
        {
          "name" : "src",
          "mode" : "source"
        },
        {
          "name" : "tgt",
          "mode" : "target"
        }
      ],
      "rule" : [
        {
          "name" : "HumanName-family-rpt-2",
          "source" : [
            {
              "context" : "src",
              "element" : "value",
              "variable" : "v"
            }
          ],
          "dependent" : [
            {
              "name" : "string",
              "parameter" : [
                {
                  "valueId" : "v"
                },
                {
                  "valueId" : "tgt"
                }
              ]
            }
          ]
        }
      ]
    }
  ]
}

XIG built as of ??metadata-date??. Found ??metadata-resources?? resources in ??metadata-packages?? packages.